package chixing.day19.homework.work1_1;

public class User {
    private int userId;
    private boolean newUser;
    private boolean vip;

    public User(){}
    public User(int userId, boolean newUser, boolean vip) {
        this.userId = userId;
        this.newUser = newUser;
        this.vip = vip;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public boolean isNewUser() {
        return newUser;
    }

    public void setNewUser(boolean newUser) {
        this.newUser = newUser;
    }

    public boolean isVip() {
        return vip;
    }

    public void setVip(boolean vip) {
        this.vip = vip;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", newUser=" + newUser +
                ", vip=" + vip +
                '}';
    }
}
